package com.examination.mlib.bean;

import java.math.BigDecimal;
import java.util.List;

public class HomeDrugEntity {
    private int code;
    private boolean result;
    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public boolean isResult() {
        return result;
    }

    public void setResult(boolean result) {
        this.result = result;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    private HomeDrugData data;

    public HomeDrugData getData() {
        return data;
    }

    public void setData(HomeDrugData data) {
        this.data = data;
    }

    public static class HomeDrugData {
//        list	Array
//        nextPage	Boolean	true
//        totalCount	Integer	39
//        pageCount	Integer	4
//        pageSize	Integer	10

        private boolean nextPage;
        private int totalCount;
        private int pageSize;
        private int pageIndex;
        private List<DrugItemData> dataList;

        public boolean isNextPage() {
            return nextPage;
        }

        public void setNextPage(boolean nextPage) {
            this.nextPage = nextPage;
        }

        public int getTotalCount() {
            return totalCount;
        }

        public void setTotalCount(int totalCount) {
            this.totalCount = totalCount;
        }

        public int getPageSize() {
            return pageSize;
        }

        public void setPageSize(int pageSize) {
            this.pageSize = pageSize;
        }

        public int getPageIndex() {
            return pageIndex;
        }

        public void setPageIndex(int pageIndex) {
            this.pageIndex = pageIndex;
        }

        public List<DrugItemData> getDataList() {
            return dataList;
        }

        public void setDataList(List<DrugItemData> dataList) {
            this.dataList = dataList;
        }
    }

    public static class ReduceRule{
        private String fullReduceRuleMoney;
        private String reduceMoney;

        public String getFullReduceRuleMoney() {
            return fullReduceRuleMoney;
        }

        public void setFullReduceRuleMoney(String fullReduceRuleMoney) {
            this.fullReduceRuleMoney = fullReduceRuleMoney;
        }

        public String getReduceMoney() {
            return reduceMoney;
        }

        public void setReduceMoney(String reduceMoney) {
            this.reduceMoney = reduceMoney;
        }
    }

    public static class DrugItemData {
//        commodityId	String	137031968227329
//        commodityType	String	packet
//        drugId	Integer	0
//        packetId	Long	137031968227329
//        price	Number	0.5
//        name	String	耐信  艾司奥美拉唑镁肠溶片 20mg*7片/盒 幽门螺旋杆菌【4盒装】
//        name2	Null	null
//        genericName	Null	null
//        imageUrl	String	https://imgvbp.yilijk.com/ab8/ab80a8d20d3e4194aab51f96bf8a416e.png
//        preferentialImageUrl	String
//        originalPrice	Number	0.8
//        isRegular	Boolean	false
//        rx	Boolean	true
//        isGiveCoupon	Integer	2
//        eventOfferShowConfigure	Boolean	false
//        discount	Number	6
//        difference	Number	0.3
//        published	Boolean	true
//        promotionImage	Null	null


        //        commodityId	String	商品ID
//        commodityType	String	商品类型
//        drugId	long	药品ID（商品类型为drug时有值，其他情况下为空）
//        packetId	long	套餐ID（商品类型为packet时有值，其他情况下为空）
//        price	double	价格
//        name	String	服务包名称（商品名称）
//        name2	String	套餐名称
//        genericName	String	药品通用名称
//        imageUrl	String	图片
//        preferentialImageUrl	String	优惠图片地址(可为空)
//        originalPrice	double	原价（划线价）
//        isRegular	Boolean	是否定期购：true 是、false 否
//        rx	boolean	是否是处方药
//        isGiveCoupon	Integer	是否赠送优惠券 1：赠送 2：不赠送
//        eventOfferShowConfigure	boolean	优惠活动显示配置：0不显示，1显示
//        discount	BigDecimal	优惠折扣，原价 / 划线价 * 10
//        difference	BigDecimal	差额，划线价 - 原价
//        published	boolean	是否已上架
//        promotionImage	String	促销图片
        private String commodityId;
        private String commodityType;
        private long drugId;
        private long packetId;
        private String price;
        private String name;
        private String name2;
        private String genericName;
        private String imageUrl;
        private String preferentialImageUrl;
        private String originalPrice;
        private boolean isRegular;
        private boolean rx;
        /**
         * 复购大礼包/复购券
         */
        private int isGiveCoupon;
        /**
         * 满减信息
         */
        private ReduceRule reduceRule;
        /**
         * 满赠
         */
        private boolean supportGive;
        /**
         * 是否支持满减
         */
        private boolean supportReduce;
        private boolean eventOfferShowConfigure;
//        private BigDecimal discount;
//        private BigDecimal difference;
        private String discount;
        private String difference;
        private boolean published;
        private String promotionImage;
        /**
         * 优惠折扣
         * 原价 / 划线价 * 10
         */
        private String discountStr;

        /**
         * 差额
         * 划线价 - 原价
         */
        private String differenceStr;

        public String getCommodityId() {
            return commodityId;
        }

        public void setCommodityId(String commodityId) {
            this.commodityId = commodityId;
        }

        public String getCommodityType() {
            return commodityType;
        }

        public void setCommodityType(String commodityType) {
            this.commodityType = commodityType;
        }

        public long getDrugId() {
            return drugId;
        }

        public void setDrugId(long drugId) {
            this.drugId = drugId;
        }

        public long getPacketId() {
            return packetId;
        }

        public void setPacketId(long packetId) {
            this.packetId = packetId;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getName2() {
            return name2;
        }

        public void setName2(String name2) {
            this.name2 = name2;
        }

        public String getGenericName() {
            return genericName;
        }

        public void setGenericName(String genericName) {
            this.genericName = genericName;
        }

        public String getImageUrl() {
            return imageUrl;
        }

        public void setImageUrl(String imageUrl) {
            this.imageUrl = imageUrl;
        }

        public String getPreferentialImageUrl() {
            return preferentialImageUrl;
        }

        public void setPreferentialImageUrl(String preferentialImageUrl) {
            this.preferentialImageUrl = preferentialImageUrl;
        }

        public String getOriginalPrice() {
            return originalPrice;
        }

        public void setOriginalPrice(String originalPrice) {
            this.originalPrice = originalPrice;
        }

        public boolean isRegular() {
            return isRegular;
        }

        public void setRegular(boolean regular) {
            isRegular = regular;
        }

        public boolean isRx() {
            return rx;
        }

        public void setRx(boolean rx) {
            this.rx = rx;
        }

        public int getIsGiveCoupon() {
            return isGiveCoupon;
        }

        public void setIsGiveCoupon(int isGiveCoupon) {
            this.isGiveCoupon = isGiveCoupon;
        }

        public boolean isEventOfferShowConfigure() {
            return eventOfferShowConfigure;
        }

        public void setEventOfferShowConfigure(boolean eventOfferShowConfigure) {
            this.eventOfferShowConfigure = eventOfferShowConfigure;
        }

        public String getDiscount() {
            return discount;
        }

        public void setDiscount(String discount) {
            this.discount = discount;
        }

        public String getDifference() {
            return difference;
        }

        public void setDifference(String difference) {
            this.difference = difference;
        }

        public boolean isPublished() {
            return published;
        }

        public void setPublished(boolean published) {
            this.published = published;
        }

        public String getPromotionImage() {
            return promotionImage;
        }

        public void setPromotionImage(String promotionImage) {
            this.promotionImage = promotionImage;
        }

        public String getDiscountStr() {
            return discountStr;
        }

        public void setDiscountStr(String discountStr) {
            this.discountStr = discountStr;
        }

        public String getDifferenceStr() {
            return differenceStr;
        }

        public void setDifferenceStr(String differenceStr) {
            this.differenceStr = differenceStr;
        }


        public boolean isSupportGive() {
            return supportGive;
        }

        public void setSupportGive(boolean supportGive) {
            this.supportGive = supportGive;
        }

        public ReduceRule getReduceRule() {
            return reduceRule;
        }

        public void setReduceRule(ReduceRule reduceRule) {
            this.reduceRule = reduceRule;
        }

        public boolean isSupportReduce() {
            return supportReduce;
        }

        public void setSupportReduce(boolean supportReduce) {
            this.supportReduce = supportReduce;
        }

    }
}
